﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormLejligheder.aspx.cs" Inherits="WebApptest.WebFormTestLejlighed" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robot" content="index,follow" />
	<meta name="author" content="Michael Modvig" />
	<meta name="language" content="English" />
	<title>Promenadebyen - Arrangementer</title>
	<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
	<link href='http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold' rel='stylesheet' type='text/css'>
</head>
<body>

<div align="center" style="width: 820px; margin-left: auto; margin-right: auto;">
<br />
<img src="images/logo2.jpg" width="820" height="365" border="0" alt="" />
<!-- #include virtual="menu.html" -->
</div>

<div class="blackbg" align="center">
<img src="images/title_lejligheder.png" width="820" height="94" alt="" />
</div>

<div>
<table border="0" align="center" width="820" cellpadding="5" cellspacing="10" background="images/tablebg.png">
<tr>
<td align="left" width="400">
    <form id="form1" runat="server">
    <div align="left">
    
        <br />
    

    <asp:ListBox ID="lstLejlighed" runat="server" Height="200px" Width="250px" 
        onselectedindexchanged="lstLejlighed_SelectedIndexChanged">
    </asp:ListBox><br />
    
        <asp:Button ID="btnFindLejlighed" runat="server" 
            onclick="btnFindLejlighed_Click" Text="Find Alle Lejligheder" 
            Width="250px" />
    <p>
        LejlighedsID:<br />
        <asp:TextBox ID="txtFindLejl" runat="server" 
            ontextchanged="txtFindLejl_TextChanged" Width="245px"></asp:TextBox>
    <br />
    <asp:Button ID="btnFindEn" runat="server" onclick="btnFindEn_Click" 
        Text="Hent informationer" Width="250px" />
    </p>
    <p>
        <asp:Label ID="Lejlnummer" runat="server" Text="Opgang"></asp:Label><br />
        <asp:TextBox ID="txtLejlnummer" runat="server" Width="245px"></asp:TextBox>
    </p>
    <p>
        Etage<br />
        <asp:TextBox ID="txtLejlSal" runat="server" 
            style="margin-bottom: 0px" Width="245px"></asp:TextBox>
    </p>
    <p>
        Side (th/tv)<br />
        <asp:TextBox ID="txtTHTV" runat="server" Width="245px"></asp:TextBox>
    </p>
    <p>
        Bygning<br />
        <asp:DropDownList ID="drpBygningsID" runat="server" ClientIDMode="Predictable" 
            DataSourceID="SqlDataSource1" DataTextField="navn" DataValueField="bygningsID" 
            onselectedindexchanged="drpBygningsID_SelectedIndexChanged" Width="250px">
        </asp:DropDownList>
    </p>
    <p>
        Stemmer<br />
        <asp:TextBox ID="txtstemmer" runat="server" Width="245px"></asp:TextBox>
    <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [navn], [bygningsID] FROM [Bygninger]" 
            onselecting="SqlDataSource1_Selecting">
        </asp:SqlDataSource>
        <asp:Button ID="btnOpret" runat="server" onclick="btnOpret_Click" 
            Text="Tilføj lejlighed" Width="250px" /><br />
    <asp:Button ID="btnOpdaterlejl" runat="server" Text="Opdater lejlighed" 
            onclick="btnOpdaterlejl_Click1" Width="250px" />
            </p>
    </form>
    </td>
    </tr>
    </table>
</div>
<br />
</body>
</html>